﻿using Nancy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Nancy.Conventions;
using Nancy.Bootstrapper;
using Nancy.TinyIoc;

namespace DrillSite
{
    public class DemoBootstrapper : DefaultNancyBootstrapper
    {
        protected override void ConfigureConventions(NancyConventions nancyConventions)
        {
            base.ConfigureConventions(nancyConventions);

            nancyConventions.StaticContentsConventions.Add(StaticContentConventionBuilder.AddDirectory("Content", @"Content"));
            nancyConventions.StaticContentsConventions.Add(StaticContentConventionBuilder.AddDirectory("Scripts", @"Scripts"));
        }


        protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines)
        {
            base.ApplicationStartup(container, pipelines);

        }

        /// <summary>
        /// 指定favicon
        /// </summary>
        protected override byte[] FavIcon
        {
            get
            {
                return base.FavIcon;
            }
        }
    }
}
